<template>
  <div id="app">
    <div id="gj-header">
      <h1>Form marker</h1>
      <ul>
        <li>
          <router-link to="/">Preview</router-link>
        </li>
        <li>
          <router-link to="/editor">Editor</router-link>
        </li>
      </ul>
    </div>
    <router-view/>
  </div>
</template>

<style lang="scss">
  #app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100%;
    height: 100%;
  }

  #gj-header {
    height: 60px;
    box-shadow: 0 2px 10px rgba(70, 160, 252, 0.6);
    padding: 0 10px;
    background-image: -webkit-gradient(linear, left top, right top, from(#1278f6), to(#00b4aa));
    background-image: linear-gradient(to right, #1278f6, #00b4aa);
    position: relative;
    display: flex;
    justify-content: space-between;
    z-index: 2;

    h1 {
      font-size: 20px;
      line-height: 60px;
      color: #ffffff;
      padding-left: 10px;
      font-weight: bold;
    }

    ul {
      display: flex;
      padding: 20px 10px;

      > li {
        list-style: none;
        font-size: 14px;
        color: #e0e0e0;
        line-height: 20px;
        height: 20px;
        padding: 0 15px;
      }

      > li + li {
        border-left: 1px solid #cccccc;
      }
      a {
        font-weight: bold;
        color: #e0e0e0;

        &.router-link-exact-active {
          color: #333;
        }
      }
    }
  }
</style>
